﻿@using Build.Mvc.TwitterBootstrap
@using TestApp.Models
@model TestApp.Models.LoginViewModel

@{
    ViewBag.Title = "Log in";
}

<h2>@ViewBag.Title.</h2>
<div class="row">
    <div class="col-md-8">
        <section id="loginForm">
            

@using (Html.BuildForm("Login", "Account", new { ViewBag.ReturnUrl }).Begin(FormRenderStyle.Horizontal))
{
    @Html.AntiForgeryToken()
    <h4>Use a local account to log in.</h4>
    <hr />
    @Html.ValidationSummary(true)

    @Html.BuildTextBoxGroup("UserName").Render(FormGroupDisplay.ReadOnly)
    @Html.BuildTextBoxGroupFor(m => m.Password, b => b.TextBox(t => t.Password()))
    @Html.BuildCheckBoxGroupFor(m=> m.RememberMe)

    <div class="form-group">
        <div class="col-md-offset-2 col-md-10">
            <input type="submit" value="Log in" class="btn btn-default" />
        </div>
    </div>
}
            
            
            

        </section>
    </div>
    <div class="col-md-4">
        <section id="socialLoginForm">
            @Html.Partial("_ExternalLoginsListPartial", new { Action = "ExternalLogin", ViewBag.ReturnUrl })
        </section>
    </div>
</div>
@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}